package com.koko.mapper;

import com.koko.order.entity.Order;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {
    Long isUserHaveOrderToPay(Long userId);

    void insert(Order order);

    void deleteById(Long id);

    Order getByUserId(Long userId);

    void update(Order order);

    Order getUnPayedOrder(Long userId);

    Order getByOrderNumber(String orderNumber);
}
